package hotel.dao;

import org.nutz.dao.entity.annotation.*;

@Table("orders")
public class OrderDao {
	@Name
	@Prev( @SQL("select generate_orderNo('JZ');") )
	private String orderId;			// 订单号
	@Column
	private String preOrderId;		// 开房单号
	@Column
	private double basicCost;		// 开房费用
	@Column
	private double otherCost;		// 其他费用
	@Column
	private double totalCost;		// 应收金额
	@Column
	private double realCharge;		// 实收金额
	@Column
	private String createTime;		// 创建时间
	@Column
	private boolean valid;			// 有效标记
	
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	public String getPreOrderId() {
		return preOrderId;
	}
	public void setPreOrderId(String preOrderId) {
		this.preOrderId = preOrderId;
	}
	public double getBasicCost() {
		return basicCost;
	}
	public void setBasicCost(double basicCost) {
		this.basicCost = basicCost;
	}
	public double getOtherCost() {
		return otherCost;
	}
	public void setOtherCost(double otherCost) {
		this.otherCost = otherCost;
	}
	public double getTotalCost() {
		return totalCost;
	}
	public void setTotalCost(double totalCost) {
		this.totalCost = totalCost;
	}
	public double getRealCharge() {
		return realCharge;
	}
	public void setRealCharge(double realCharge) {
		this.realCharge = realCharge;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public boolean isValid() {
		return valid;
	}
	public void setValid(boolean valid) {
		this.valid = valid;
	}
	
}
